package com.foodsafe.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.foodsafe.dao.GoodsCategoryDao;
import com.foodsafe.model.Goodcategory;
import com.foodsafe.util.PageInfo;

@Component("GoodsCategoryService")
public class GoodsCategoryService {
	private GoodsCategoryDao goodsCategoryDao;
	
	public GoodsCategoryDao getGoodsCategoryDao() {
		return goodsCategoryDao;
	}
	@Resource
	public void setGoodsCategoryDao(GoodsCategoryDao goodsCategoryDao) {
		this.goodsCategoryDao = goodsCategoryDao;
	}

	public void deleteGoodcategory(int[] GoodcategoryIds) throws Exception {
		this.goodsCategoryDao.deleteGoodcategory(GoodcategoryIds);
		
	}

	public List<Goodcategory> queryGoodcategory(PageInfo pageInfo)
			throws Exception {
		return goodsCategoryDao.queryGoodcategory(pageInfo);
	}

}
